{% extends 'group_base.html' %}

{% block theme %}
我的发言
{% endblock %}

{% block headline %}
<div id=uiHeaderSection class="zbar clearfix">
<a href="/group/topics/">最新话题</a>
<span class="now">
	<span>我发起的话题</span>
</span>
<a href="/group/my_replied_topics/">我回应的话题</a>
<a href="/group/topics/">帖子</a>
<a href="/group/questions/">问题</a>
</div>
{% endblock %}

{% block tbody %}
<tr>
	<td> </td>
	<td>话题</td>
	<td>群组</td>
	<td>作者</td>
	<td align="right" nowrap="nowrap">回应</td>
	<td align="right">发布时间</td>
</tr>
{% for topic in my_topics %}										
<tr class="pl">
{% if topic.poster %}
	<td>
		{% if topic.stick %}
			<img src="/image/up.png" />
		{% else %}
			<img src="/image/none.png" />
		{% endif %}
		
		{% if topic.elite %}
			<img src="/image/star.png" />
		{% else %}
			<img src="/image/post.png" />
		{% endif %}
	</td>
	<td class="td_title"> <a href="/group/post/{{topic.id}}/" title={{ topic.title }}> {{ topic.title }}</a> </td>
	<td> <a href="/group/gr/{{ topic.group.id }}"> {{ topic.group.name }} </a> </td>
	<td> {{ topic.poster.name }} </td>
	<td align="right"> {{ topic.replied_count }} </td>
	<td align="right"> {{ topic.post_datetime|date:"Y-m-j f" }} </td>
	
{% else %}
	<td>
		<img src="/image/none.png" />
		<img src="/image/question.png" />
	</td>
	<td class="td_title"> <a href="/qa/questions/{{topic.id}}/" target="_blank" title={{ topic.title}}> {{ topic.title|slice:":30" }}</a> </td>
	<td><a href="/group/gr/{{ topic.groups.all.0.id }}">{{ topic.groups.all.0.name }}</a> </td>
	<td> {{ topic.questioner.name }} </td>
	<td align="right"> {{ topic.answered_count }} </td>
	<td align="right"> {{ topic.question_datetime|date:"Y-m-j f" }} </td>
{% endif %}
</tr>
{% endfor %}
{% endblock %}